<template>
  <Syx-Login
    :url="[]"
    :passwordf="passwordf"
    :loginjk="obj"
    ubgUrl="pink"
    @loginjkfsuccess="loginjkfsuccess"
  ></Syx-Login>
</template>

<script>
export default {
  data() {
    return {
      obj: {
        url: process.env.VUE_APP_DOMAIN_URL + "user/login",
        method: "POST",
      },
    };
  },
  methods: {
    passwordf(rule, value, callback) {
      return callback(value ? "" : "请输入密码"); 
    },
    loginjkfsuccess() {
      let res = this.nativeplacestore.get("login");
      res = JSON.parse(res)
      if (res.code == 1000) {
        this.$router.push("/");
      } else {
        this.$message({
          showClose: true,
          message: res.data,
          type: "warning",
        });
      }
    },
  },
};
</script>

<style></style>
